#{extends 'profileLayout.html' /}
<h1>Labels List</h1>

<a href="@{Application.createLabel()}">create label</a>
<br>
<br>
<br>
#{if labels}
<form action="@{Application.deleteLabel()}" action="get">
 #{list labels, as:'label'}
<li><input type="checkbox" name="labels" value="${label.id}" />
<a href="@{Application.viewIdeasInLabel(label.id)}">${label.titel}</a>
#{/list}
<br>
<br>
<input type="submit" value="delete label" />
</form>
 #{/if}
 #{else}
 No labels added yet !!
 #{/else}
<br>
<br>
<br>
<br>
<a href ="@{Application.viewProfile()}">Back To Profile</a>